package com.kamistoat.meimeimall.meimeimallorder.feign;

import com.kamistoat.meimeimall.common.To.EsTo.OrderListTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 已弃用
 */
@FeignClient("meimeimall-third-party")
public interface ThirdPartyFeignService {
    /**
     * 远程接口
     * 从ES中获取条件查询的结果
     *
     * @return
     */
    @RequestMapping("/getOrderListTosFromES")
    List<OrderListTo> getOrderListTosFromES(
            @RequestParam Long id,
            @RequestParam Integer pageNum,
            @RequestParam Integer pageLimit,
            @RequestParam String searchCondition);
}
